//
//  UIImageViewController.swift
//  HHSwift
//
//  Created by 华宏 on 2019/9/13.
//  Copyright © 2019 huahong. All rights reserved.
//

import UIKit

class UIImageViewController: BaseViewController {

    var imageView:UIImageView = UIImageView()
    
    override func viewDidLoad() {
        super.viewDidLoad()
        self.title = "UIImageView"
        
        imageView.contentMode = .scaleAspectFit
       self.view.addSubview(imageView)
        
        imageView.snp.makeConstraints { (maker) in
            maker.edges.equalTo(UIEdgeInsets(top: 10, left: 10, bottom: 10, right: 10)) 
        }
        
        
        
        let url = URL(string: "http://c.hiphotos.baidu.com/zhidao/pic/item/5ab5c9ea15ce36d3c704f35538f33a87e950b156.jpg")
                
    
        imageView.kf.setImage(with: url,placeholder: nil,options:[.transition(.fade(0.25))])
    }
    

}
